<template>
    <div>
        <Button type="primary"  @click="showModal = true"><Icon type="plus"></Icon> 新增</Button>
        <Modal v-model="showModal"
        title="add"
        @on-ok="ok"
        @on-cancel="cancel">
            <p>Content of dialog</p>
        </Modal>

    </div>
</template>

<script>
    export default {
        data () {
            return {
                showModal:false
            }
        },
        methods:{
            ok: function () {
                
            },
            "cancel":function () {
                
            }
        }
    }
</script>